package com.gxc.healthfood.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;

/**
 * 营养素推荐标准实体类
 * @TableName nutrient_recommendations
 */
@TableName(value ="nutrient_recommendations")
@Data
public class NutrientRecommendations implements Serializable {
    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 健身目标
     */
    @TableField(value = "goal")
    private Object goal;

    /**
     * 蛋白质比例
     */
    @TableField(value = "protein_ratio")
    private BigDecimal proteinRatio;

    /**
     * 脂肪比例
     */
    @TableField(value = "fat_ratio")
    private BigDecimal fatRatio;

    /**
     * 碳水比例
     */
    @TableField(value = "carb_ratio")
    private BigDecimal carbRatio;

    /**
     * 热量调整值(正为盈余，负为缺口)
     */
    @TableField(value = "calorie_adjustment")
    private Integer calorieAdjustment;

    /**
     * 推荐描述
     */
    @TableField(value = "description")
    private String description;

    /**
     * 是否启用
     */
    @TableField(value = "active")
    private Integer active;

    /**
     * 创建时间
     */
    @TableField(value = "created_at")
    private Date createdAt;

    /**
     * 更新时间
     */
    @TableField(value = "updated_at")
    private Date updatedAt;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}